import request from '@/utils/request'

// 查询数据库字段列表
export function listBusinesscolumn(query) {
  return request({
    url: '/business/businesscolumn/list',
    method: 'get',
    params: query
  })
}

// 查询数据库字段详细
export function getBusinesscolumn(id) {
  return request({
    url: '/business/businesscolumn/' + id,
    method: 'get'
  })
}

// 新增数据库字段
export function addBusinesscolumn(data) {
  return request({
    url: '/business/businesscolumn',
    method: 'post',
    data: data
  })
}

// 修改数据库字段
export function updateBusinesscolumn(data) {
  return request({
    url: '/business/businesscolumn',
    method: 'put',
    data: data
  })
}

// 删除数据库字段
export function delBusinesscolumn(id) {
  return request({
    url: '/business/businesscolumn/' + id,
    method: 'delete'
  })
}
